const { Controller } = require("egg");

class NewController extends Controller {
  async index() {
    const { ctx } = this;
    ctx.body = "新闻访问页面";
  }

  async newscontent() {
    const { ctx } = this;

    ctx.body = "新闻内容";

    console.log(ctx.query);
  }

  async newsList() {
    const { ctx } = this;
    ctx.body = "新闻列表";
    console.log(ctx.params);
  }
}

module.exports = NewController;
